package com.nkdx.ws.mapper;

import com.nkdx.ws.dto.MeteorologicalDataDto;
import com.nkdx.ws.eto.MeteorologicalDataEto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MeteorologicalDataEtoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MeteorologicalDataEto record);

    int insertSelective(MeteorologicalDataEto record);

    MeteorologicalDataEto selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MeteorologicalDataEto record);

    int updateByPrimaryKey(MeteorologicalDataEto record);

    List<MeteorologicalDataDto> findAll();

    List<MeteorologicalDataDto> findAllByCity(@Param("cityId") Integer cityId, @Param("status") Integer status);
}